<?php

require 'class.DB.php';

echo "test";

$result = mysql_query("SELECT id,power,player,x,y,ships   FROM planet WHERE map=0 ",$db);

$send='';

while ($myrow = mysql_fetch_array($result)) {
    $send .= $myrow["id"] . ' ' . $myrow["power"] . ' ' . $myrow["player"] . ' ' . $myrow["x"] .
        ' ' . $myrow["y"] . ' ' . $myrow["ships"] . ' ';
    $send .= 'end1';
    }
echo " test2".$send;

?>